package com.study.customer.client;

import com.study.customer.controller.dto.OrderDto;
import com.study.customer.pojo.GameOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "shopservice",path = "/order",url = "http://localhost:8080")
public interface ShopClient {
    @PostMapping
    public GameOrder orderGames(@RequestBody OrderDto orderDto);
    @GetMapping("/{id}")
    public GameOrder getById(@PathVariable Long id);
}
